package cn.com.xjnt.vas.manage.domain.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "sys_account_role")
@NamedQuery(name = "AccountRole.findAll", query = "SELECT a FROM AccountRole a")
public class AccountRole extends com.frameworks.core.entity.IdEntity {
	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "account_id")
	private Account account;

	@ManyToOne
	@JoinColumn(name = "role_id")
	private Role role;

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}